package com.wzcl.app.model.dto;



import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = false)
@Data
public class UserDto extends BaseDto {

    @NotNull(message = "缺少手机号")
    @ApiModelProperty("手机")
    private String phone;

    @ApiModelProperty("密码")
    private String password;

    @NotNull(message = "缺少昵称")
    @ApiModelProperty(value = "用户在系统内的昵称")
    private String nickName;

    @ApiModelProperty(value = "用户真实姓名")
    private String realName;

    @NotNull(message = "缺少性别")
    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "用户状态")
    private Integer userState;

    @ApiModelProperty(value = "头像的文件ID")
    private String headIcon;

    @ApiModelProperty(value = "验证码")
    private String code;

    @ApiModelProperty(value = "角色类型")
    private Integer type;

    @ApiModelProperty(value = "用户详细信息")
    private UserInfoDto  userInfoDto;

    @ApiModelProperty(value = "年级id")
    private Integer gradeId;

    @ApiModelProperty(value = "权限")
    private Integer roleId;
}
